let context=$("#lineChart").get(0).getContext("2d"),chartData=$("#data").data("chart_data");console.log(chartData.labels);var chart=new Chart(context,{type:"bar",data:{labels:chartData.labels,datasets:[{label:"Новых пользователей",data:chartData.registrationsCount,fill:!0,lineTension:.2,backgroundColor:"rgba(54, 162, 235, 0.5)",borderColor:"rgb(54, 162, 235)",borderWidth:1.2},]},options:{responsive:!0}});$("#changeDateButton").click(()=>{var a;let t={date_from:$("#datefrom").val(),date_to:$("#dateto").val()};$.post("/admin",t).done(function(a){a=JSON.parse(a),chart.data.labels=a.labels,chart.data.datasets[0].data=a.registrationsCount,chart.update()})});